package com.lin.manager.sms.ex;


import com.lin.manager.sms.enums.SendEnum;

/**
 * @author linjiang
 * @date 2024/7/26
 * @fn
 */
public class CustomSendException extends RuntimeException {

    private Integer code;

    public CustomSendException(SendEnum sendEnum) {
        super(sendEnum.getDesc());
        this.code = sendEnum.getCode();
    }

    public CustomSendException(Integer code, String desc) {
        super(desc);
        this.code = code;
    }
}
